.class public abstract Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
.super Lcom/jeremyfeinstein/slidingmenu/lib/app/SlidingFragmentActivity;
.source "AbsBaseSlidingMenuActivity.java"


# instance fields
.field private isQuitAppRequest:Z

.field protected mFragment:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

.field protected mHandler:Landroid/os/Handler;

.field transformer:Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu$CanvasTransformer;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 26
    invoke-direct {p0}, Lcom/jeremyfeinstein/slidingmenu/lib/app/SlidingFragmentActivity;-><init>()V

    .line 28
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->mHandler:Landroid/os/Handler;

    .line 31
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->isQuitAppRequest:Z

    .line 78
    new-instance v0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity$1;-><init>(Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->transformer:Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu$CanvasTransformer;

    return-void
.end method

.method static synthetic access$002(Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 26
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->isQuitAppRequest:Z

    return p1
.end method


# virtual methods
.method protected getActivity()Landroid/app/Activity;
    .registers 1

    .prologue
    .line 38
    return-object p0
.end method

.method protected getContext()Landroid/content/Context;
    .registers 1

    .prologue
    .line 34
    return-object p0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .registers 9
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const v6, 0x7f0a0146

    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 43
    invoke-super {p0, p1}, Lcom/jeremyfeinstein/slidingmenu/lib/app/SlidingFragmentActivity;->onCreate(Landroid/os/Bundle;)V

    .line 44
    invoke-static {}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->hasSmartBar()Z

    move-result v3

    if-nez v3, :cond_11

    .line 45
    invoke-virtual {p0, v5}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->requestWindowFeature(I)Z

    .line 48
    :cond_11
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getActionBar()Landroid/app/ActionBar;

    move-result-object v0

    .line 49
    .local v0, "bar":Landroid/app/ActionBar;
    if-eqz v0, :cond_1a

    .line 50
    invoke-virtual {v0}, Landroid/app/ActionBar;->hide()V

    .line 54
    :cond_1a
    const v3, 0x7f030061

    invoke-virtual {p0, v3}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->setBehindContentView(I)V

    .line 55
    if-nez p1, :cond_55

    .line 56
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v3

    invoke-virtual {v3}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v2

    .line 57
    .local v2, "t":Landroid/support/v4/app/FragmentTransaction;
    new-instance v3, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    invoke-direct {v3}, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;-><init>()V

    iput-object v3, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->mFragment:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    .line 58
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->mFragment:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    invoke-virtual {v2, v6, v3}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    .line 59
    invoke-virtual {v2}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    .line 65
    .end local v2    # "t":Landroid/support/v4/app/FragmentTransaction;
    :goto_39
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getSlidingMenu()Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;

    move-result-object v1

    .line 67
    .local v1, "slidingMenu":Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;
    const v3, 0x7f090089

    invoke-virtual {v1, v3}, Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;->setBehindOffsetRes(I)V

    .line 69
    invoke-virtual {v1, v4}, Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;->setFadeEnabled(Z)V

    .line 70
    invoke-virtual {v1, v4}, Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;->setTouchModeAbove(I)V

    .line 71
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->transformer:Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu$CanvasTransformer;

    invoke-virtual {v1, v3}, Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;->setBehindCanvasTransformer(Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu$CanvasTransformer;)V

    .line 72
    invoke-virtual {v1, v5}, Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;->setTouchModeBehind(I)V

    .line 74
    invoke-virtual {p0, v4}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->setSlidingActionBarEnabled(Z)V

    .line 76
    return-void

    .line 61
    .end local v1    # "slidingMenu":Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;
    :cond_55
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/support/v4/app/FragmentManager;->findFragmentById(I)Landroid/support/v4/app/Fragment;

    move-result-object v3

    check-cast v3, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    iput-object v3, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->mFragment:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    goto :goto_39
.end method

.method public onKeyUp(ILandroid/view/KeyEvent;)Z
    .registers 9
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x1

    .line 90
    const/4 v2, 0x4

    if-ne p1, v2, :cond_55

    .line 92
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getSlidingMenu()Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;

    move-result-object v2

    invoke-virtual {v2}, Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;->isMenuShowing()Z

    move-result v2

    if-nez v2, :cond_16

    .line 93
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getSlidingMenu()Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;

    move-result-object v2

    invoke-virtual {v2}, Lcom/jeremyfeinstein/slidingmenu/lib/SlidingMenu;->showMenu()V

    .line 123
    :goto_15
    return v1

    .line 97
    :cond_16
    iget-boolean v2, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->isQuitAppRequest:Z

    if-eqz v2, :cond_36

    .line 98
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    if-eqz v2, :cond_27

    .line 100
    :try_start_20
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcn/sharesdk/framework/ShareSDK;->stopSDK(Landroid/content/Context;)V
    :try_end_27
    .catch Ljava/lang/Exception; {:try_start_20 .. :try_end_27} :catch_50

    .line 107
    :cond_27
    :goto_27
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v2

    new-instance v3, Lcom/brixd/niceapp/bus/event/AppExitEvent;

    invoke-direct {v3}, Lcom/brixd/niceapp/bus/event/AppExitEvent;-><init>()V

    invoke-virtual {v2, v3}, Lcom/squareup/otto/Bus;->post(Ljava/lang/Object;)V

    .line 108
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->finish()V

    .line 112
    :cond_36
    iput-boolean v1, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->isQuitAppRequest:Z

    .line 113
    const v2, 0x7f0c003c

    const/4 v3, 0x0

    invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 114
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->mHandler:Landroid/os/Handler;

    new-instance v3, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity$2;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity$2;-><init>(Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;)V

    const-wide/16 v4, 0x7d0

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_15

    .line 101
    :catch_50
    move-exception v0

    .line 102
    .local v0, "e":Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_27

    .line 123
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_55
    invoke-super {p0, p1, p2}, Lcom/jeremyfeinstein/slidingmenu/lib/app/SlidingFragmentActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v1

    goto :goto_15
.end method

.method public abstract switchFragment(Landroid/support/v4/app/Fragment;)V
.end method
